<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace app\portal\controller;

use cmf\controller\HomeBaseController;
class AboutController extends HomeBaseController
{
    //关于我们详情
    public function aboutDetail(){
        $language = $this->request->param('language');

        //关于我们
        if(isset($language) && !empty($language)){
            //英文
            $field_about = 'id,thumbnail,detail_en,video';
        }else{
            //中文
            $field_about = 'id,thumbnail,detail,video';
        }
        $detail_about = CommonController::findData('about',['id'=>1],$field_about);
        $this->assign('detail_about',$detail_about);

        return $this->fetch();
    }
}
